package com.neusoft.elm.po;

import java.util.Objects;

public class Food {
    private Integer foodId;//食品id
    private String foodName;//食品名称
    private String foodExplain;//食品介绍
    private String foodImg;//食品图片
    private Double foodPrice;//食品价格
    private Integer businessId;//食品所属商家的id
    private String remarks;//备注
    //get、set ... ...


    public Food() {
    }

    public Food(Integer foodId, String foodName, String foodExplain, String foodImg, Double foodPrice, Integer businessId, String remarks) {
        this.foodId = foodId;
        this.foodName = foodName;
        this.foodExplain = foodExplain;
        this.foodImg = foodImg;
        this.foodPrice = foodPrice;
        this.businessId = businessId;
        this.remarks = remarks;
    }

    public Integer getFoodId() {
        return foodId;
    }

    public void setFoodId(Integer foodId) {
        this.foodId = foodId;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public String getFoodExplain() {
        return foodExplain;
    }

    public void setFoodExplain(String foodExplain) {
        this.foodExplain = foodExplain;
    }

    public String getFoodImg() {
        return foodImg;
    }

    public void setFoodImg(String foodImg) {
        this.foodImg = foodImg;
    }

    public Double getFoodPrice() {
        return foodPrice;
    }

    public void setFoodPrice(Double foodPrice) {
        this.foodPrice = foodPrice;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "Food{" +
                "foodId=" + foodId +
                ", foodName='" + foodName + '\'' +
                ", foodExplain='" + foodExplain + '\'' +
                ", foodImg='" + foodImg + '\'' +
                ", foodPrice=" + foodPrice +
                ", businessId=" + businessId +
                ", remarks='" + remarks + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Food food = (Food) o;
        return Objects.equals(foodId, food.foodId) &&
                Objects.equals(foodName, food.foodName) &&
                Objects.equals(foodExplain, food.foodExplain) &&
                Objects.equals(foodImg, food.foodImg) &&
                Objects.equals(foodPrice, food.foodPrice) &&
                Objects.equals(businessId, food.businessId) &&
                Objects.equals(remarks, food.remarks);
    }

    @Override
    public int hashCode() {
        return Objects.hash(foodId, foodName, foodExplain, foodImg, foodPrice, businessId, remarks);
    }
}